import Axios from '../uitils/axios'

//banner
export const bannerlist = (user:object) =>Axios.get('/api/banner',user)

//企业特色
export const gethome = (user:object) =>Axios.get('/api/home',user)

type USER = {
    name: string,
    url: string,
    intro: string,
    status: boolean,
    createdAt: string
    pic:string,
}
//添加企业
export const addenter = (user:USER) => Axios.post('/api/home',user)
//获取
export const gettenter = (id:number,user:any) => Axios.get(`/api/home/${id}`,user)
//修改
export const editenter = (id:number,user:any) => Axios.put(`/api/home/${id}`,user)
